import request from '@/utils/request'


//文案分类列表
export function getCopywritingCateList(data) {
  return new Promise((resolve, reject) => {
    request({
      url: '/api/poster.copywriting_category/list',
      method: 'get',
      data
    }).then(data => {
      resolve(data)
    }).catch((e) => {
		console.log(e);
      reject(e)
    })
  })
}
//文案列表
export function getCopywritingList(data) {
  return new Promise((resolve, reject) => {
    request({
      url: '/api/poster.copywriting_category/list',
      method: 'get',
      data
    }).then(data => {
      resolve(data)
    }).catch((e) => {
		console.log(e);
      reject(e)
    })
  })
}
//文案列表
export function getCopywritingLDetail(id) {
  return new Promise((resolve, reject) => {
    request({
      url: `/api/poster.copy_writing/detail?id=${id}`,
      method: 'get',
      data
    }).then(data => {
      resolve(data)
    }).catch((e) => {
		console.log(e);
      reject(e)
    })
  })
}